import request from '@/untils/request'

//查询采购
export const selectSource = () => {
    return request({
        url: '/cgorder/getList',
        method: 'get',
        params:{}
    })
}

//新增采购
export const addSource = (cgOrder) => {
    return request({
        url: '/cgorder/add',
        method: 'post',
        data:cgOrder,

    })
}

//采购撤销
export const deleteSource = (id) => {
    return request({
        url: '/cgorder/delete',
        method: 'delete',
        params:{
            id
        }
    })

}